import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_plugin_print_a300/flutter_plugin_print_a300.dart';
import 'package:flutter_plugin_print_a300/flutter_plugin_print_a300_platform_interface.dart';
import 'package:flutter_plugin_print_a300/flutter_plugin_print_a300_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockFlutterPluginPrintA300Platform
    with MockPlatformInterfaceMixin
    implements FlutterPluginPrintA300Platform {

  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

void main() {
  final FlutterPluginPrintA300Platform initialPlatform = FlutterPluginPrintA300Platform.instance;

  test('$MethodChannelFlutterPluginPrintA300 is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelFlutterPluginPrintA300>());
  });

  test('getPlatformVersion', () async {
    FlutterPluginPrintA300 flutterPluginPrintA300Plugin = FlutterPluginPrintA300();
    MockFlutterPluginPrintA300Platform fakePlatform = MockFlutterPluginPrintA300Platform();
    FlutterPluginPrintA300Platform.instance = fakePlatform;

    expect(await flutterPluginPrintA300Plugin.getPlatformVersion(), '42');
  });
}
